package com.chris.seata_order.dubbo;

import com.alibaba.dubbo.config.annotation.Service;
import com.chris.seata_facade.OrderFacade;
import com.chris.seata_order.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author wujf
 * @date 2022/1/19
 */
@Service
@Component
public class DubboOrderService implements OrderFacade {

    @Autowired
    protected OrderService orderService;

    @Override
    public boolean createOrder() {
        boolean b = orderService.insertOrder();
        return b;
    }
}
